/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.application.tenant.command;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

@Data
@Schema(description = "创建租户命令")
public class CreateTenantCmd {

  @NotBlank(message = "{tenant.code.required}")
  @Length(max = 32, message = "{tenant.code.max.length}")
  @Schema(description = "租户编码")
  private String code;

  @NotBlank(message = "{tenant.name.required}")
  @Length(max = 64, message = "{tenant.name.max.length}")
  @Schema(description = "租户名称")
  private String name;

  @NotNull(message = "{tenant.status.required}")
  @Range(min = -127, max = 128, message = "{tenant.status.range}")
  @Schema(description = "租户状态")
  private Integer status;

  @Length(max = 128, message = "{tenant.remark.max.length}")
  @Schema(description = "租户备注")
  private String remark;
}
